package com.lazy.spring_study.a_1;

//import com.lazy.spring_study.a_1.bean.MyTestBean;
import org.junit.Test;
import org.springframework.beans.factory.BeanFactory;
import org.springframework.beans.factory.xml.XmlBeanFactory;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
import org.springframework.core.io.ClassPathResource;

/**
 * @version V1.0
 * @title: BeanFactoryTest
 * @description: ${DESCRIPTION}
 * @author: wanghuilong
 * @date: 2019-11-20 16:45
 * @copyright: http://fingo.com.my/
 */
public class BeanFactoryTest {

    @Test
    public void test() {
//        ApplicationContext applicationContext = new ClassPathXmlApplicationContext("${user.home}/beanFactoryTest.xml");
//        MyTestBean myTestBean = (MyTestBean) applicationContext.getBean("myTestBean");
//        System.out.println(myTestBean.getTestStr().equals("testStr"));
//        Object car = applicationContext.getBean("car");
//        System.out.println(car);
//        Object carFactory = applicationContext.getBean("&car");
//        System.out.println(carFactory);
    }

}
